package huzh.foundation.pool.threadpool;

/**
 *<p>title:ConsumerJob</p>
 *<p>description:</p>
 * @since 2014-5-26
 * @author huzh
 * @version 1.0
 */
public class ConsumerJob implements Cloneable{
    /** jobObj*/
    private Object jobObj = null;
    /** paraObj*/
    private Object paraObj = null;
    /** ins*/
    private static ConsumerJob ins = new ConsumerJob();

    /**
     * @return
     */
    public static ConsumerJob getInstance(){
        ConsumerJob cj = null;
        try {
            cj = (ConsumerJob)ins.clone();
        }catch (Exception e) {
            System.out.println("Exception at JobClass clone: " + e);
            e.printStackTrace();
            cj = new ConsumerJob();
        }
        return cj;
    }

    /**
     * @return jobObj
     */
    public Object getJobObj(){
        return this.jobObj;
    }

    /**
     * @return paraObj
     */
    public Object getParaObj() {
        return this.paraObj;
    }

    /**
     * @param jobObj
     */
    public void setJobObj(Object jobObj){
        this.jobObj = jobObj;
    }

    /**
     * @param paraObj
     */
    public void setParaObj(Object paraObj) {
        this.paraObj = paraObj;
    }
  }
